.class public Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;
.super Landroid/widget/ArrayAdapter;
.source "ViewSendGlympse.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewSendGlympse;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "DurationsAdapter"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/widget/ArrayAdapter",
        "<",
        "Lcom/glympse/android/glympse/ViewSendGlympse$Duration;",
        ">;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field private m_oLayoutInflater:Landroid/view/LayoutInflater;

.field final synthetic this$0:Lcom/glympse/android/glympse/ViewSendGlympse;


# direct methods
.method public constructor <init>(Lcom/glympse/android/glympse/ViewSendGlympse;Landroid/content/Context;)V
    .locals 2
    .parameter
    .parameter "oContext"

    .prologue
    .line 1174
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    .line 1172
    const v0, 0x109000f

    invoke-virtual {p1}, Lcom/glympse/android/glympse/ViewSendGlympse;->IsModify()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-static {}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$14()[Lcom/glympse/android/glympse/ViewSendGlympse$Duration;

    move-result-object v1

    :goto_0
    invoke-direct {p0, p2, v0, v1}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;I[Ljava/lang/Object;)V

    .line 1167
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;->m_oLayoutInflater:Landroid/view/LayoutInflater;

    .line 1173
    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;->m_oLayoutInflater:Landroid/view/LayoutInflater;

    return-void

    .line 1172
    :cond_0
    invoke-static {}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$15()[Lcom/glympse/android/glympse/ViewSendGlympse$Duration;

    move-result-object v1

    goto :goto_0
.end method


# virtual methods
.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5
    .parameter "nPosition"
    .parameter "oView"
    .parameter "oParent"

    .prologue
    .line 1182
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;->m_oLayoutInflater:Landroid/view/LayoutInflater;

    const v2, 0x109000f

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-virtual {v1, v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    .line 1183
    const v1, 0x1020014

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 1184
    .local v0, oTextView:Landroid/widget/TextView;
    const/high16 v1, -0x100

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 1185
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    iget-object v2, p0, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v2}, Lcom/glympse/android/glympse/ViewSendGlympse;->IsModify()Z

    move-result v2

    if-eqz v2, :cond_0

    move v2, p1

    :goto_0
    invoke-static {v1, v2}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$16(Lcom/glympse/android/glympse/ViewSendGlympse;I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1187
    return-object p2

    .line 1185
    :cond_0
    add-int/lit8 v2, p1, 0x1

    goto :goto_0
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 2
    .parameter
    .parameter "oView"
    .parameter "nPos"
    .parameter "lRow"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 1193
    .local p1, oAdpaterView:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    if-ltz p3, :cond_0

    .line 1196
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$17(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/AutoCompleteTextView;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/android/glympse/Glympse;->SetFocusEvenInTouchMode(Landroid/view/View;)V

    .line 1199
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$18(Lcom/glympse/android/glympse/ViewSendGlympse;Z)V

    .line 1200
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    iget-object v1, p0, Lcom/glympse/android/glympse/ViewSendGlympse$DurationsAdapter;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v1}, Lcom/glympse/android/glympse/ViewSendGlympse;->IsModify()Z

    move-result v1

    if-eqz v1, :cond_1

    move v1, p3

    :goto_0
    invoke-static {v0, v1}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$6(Lcom/glympse/android/glympse/ViewSendGlympse;I)V

    .line 1202
    :cond_0
    return-void

    .line 1200
    :cond_1
    add-int/lit8 v1, p3, 0x1

    goto :goto_0
.end method
